package com.link.base.base.common.service;

import com.link.base.base.common.dao.mybatis.mapper.InterObjectMapper;
import com.link.base.base.common.model.InterObject;
import com.link.core.basic.service.BasicServiceException;
import com.link.core.cllog.LCLogger;
import javax.annotation.Resource;

import com.link.core.basic.service.ServiceException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/9 9:21
 * @version 1.0
 */

@Service
@Transactional(rollbackFor = ServiceException.class)
public class InterObjectServiceImpl implements InterObjectService {


    @Resource
    private InterObjectMapper interObjectMapper;

    /**
     * 插入公告附件表
     * @param record
     * @throws BasicServiceException
     */
    @Override
    public void announceAttachInsert(InterObject record) throws BasicServiceException {
        try {
            interObjectMapper.announceAttachInsert(record);
        } catch (Exception e) {
            LCLogger.withException(e);
            throw new BasicServiceException(e.getMessage());
        }
    }


}
